import React, { Component, useEffect, useReducer } from 'react';
let UU = require('../Hook/useReducer').default
let UU2

const AppApi = {}
class App extends Component {
  state = {
    title: 'aa'
  }
  componentDidMount() {
    AppApi.instance = this
    setTimeout(() => {
      import('../Hook/useReducer').then(res => {
        console.warn(res)
        UU2 = res.default
        AppApi.instance.forceUpdate()
      })      
    }, 3000);
  }
  componentDidUpdate() {
  }
  render() {
    return (
      <div className='h800 mg100'>
        {/* <Demo /> */}
       <UU></UU>
       {UU2 ? <UU2/> : null}
      </div>
    );
  }
}

export default App;



